package org.steven.crm.core.query;

import com.steven.xdb.pagination.query.AbstractQueryDataList;

public class UserQueryDataList extends AbstractQueryDataList {

	@Override
	public void init() {
		setTableOrView("user");
		setColumns("*");
		setConditionRelation("and");
		setQueryWithNoCondition(true);
		setPageNumber(20);

		addQueryCondition("code", "=", "$code$");
		addQueryCondition("nick", "like", "%$nick$%");
		addQueryCondition("mobileCoutryCode", "=", "$mobileCoutryCode$");
		addQueryCondition("mobile", "like", "%$mobile$%");
	}
}
